<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
  <%@ taglib prefix="s" uri="/struts-tags" %>
 <jsp:useBean id="dateValue" class="java.util.Date" />

<c:forEach var="item" items="${orderEntities}">
            <tr>
						<td>${item.id}</td>
                         <jsp:setProperty name="dateValue" property="time" value="${item.orderDate}" />
                       	<td><fmt:formatDate pattern="dd/MM/yyyy hh:mm aaa"  value="${dateValue}" /></td>
						<td>${item.note}</td>
						<td>INR ${item.totalAmount}</td>
						<td>${fn:length(item.itemList)}</td>
						 <td>INR ${item.totalAmount-item.dueAmount}</td>
						<td>INR ${item.dueAmount}</td>
						<td> ${item.employee.name}</td>
                        <td> ${item.customer.name},${item.customer.city}</td>
						<td>
							<form id="form_receipt_suspended_sale" method="get" accept-charset="utf-8" action="${pageContext.request.contextPath}/receipts/orderreceipt.ps">
							<input type="hidden" value="${item.id}" name="id">
							<input type="submit" class="submit_button float_right" id="submit_receipt" value="Receipt" name="submit">
							</form>
						</td>

					</tr>
            </c:forEach>

